<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Pc_Financeextend extends Stourweb_Controller
{
    public function before()
    {
        parent::before();
    }

    //预订产品设置记录相应的成本和基础价
    public function action_order_set_count_info()
    {
        $ordersn = Common::remove_xss(Arr::get($_GET,'ordersn'));
        $res = Model_Finance_Listener::order_set_count_info($ordersn);
        echo json_encode($res);
    }

    //订单付款成功后调用计算佣金(废弃,在下单时就已经计算)
    public function action_order_caculate_platform_commission()
    {
        $ordersn = St_Filter::remove_xss(Arr::get($_GET,'ordersn'));
        $res = Model_Finance_Listener::order_caculate_platform_commission($ordersn);
        echo json_encode($res);
    }

}